﻿<tb:ToolBarBase x:Class="SuperQuery.UserControls.ToolBars.DatabaseListToolBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:tb="clr-namespace:SuperQuery.UserControls.ToolBars"
             mc:Ignorable="d" 
             TextOptions.TextFormattingMode="Display">
    <ToolBar>
        <Button x:Name="btnAddDatabases" Click="btnAddDatabases_Click">
            <StackPanel Orientation="Horizontal">
                <Image Height="16" Source="..\..\Icons\adddb.ico" Style="{StaticResource buttonImage}"/>
                <TextBlock>Add</TextBlock>
            </StackPanel>
        </Button>

        <Button x:Name="btnRemoveDatabases" Click="btnRemoveDatabases_Click">
            <StackPanel Orientation="Horizontal">
                <Image Height="16" Source="..\..\Icons\removedb.ico" Style="{StaticResource buttonImage}"/>
                <TextBlock>Remove</TextBlock>
            </StackPanel>
        </Button>
        
        <Button>
            <Menu>
                <MenuItem x:Name="mnuSelect">
                    <MenuItem.Header>
                        <StackPanel Orientation="Horizontal">
                            <Image Source="..\..\Icons\select.ico" Style="{StaticResource menuImage}"/>
                            <TextBlock>Select</TextBlock>
                        </StackPanel>
                    </MenuItem.Header>
                    
                    <MenuItem x:Name="mnuSelectFailures" Click="mnuSelectFailures_Click" Header="Failures"/>
                    <MenuItem x:Name="mnuSelectSuccesses" Click="mnuSelectSuccesses_Click"  Header="Successes"/>
                    <MenuItem x:Name="mnuSelectAll" Click="mnuSelectAll_Click" Header="Select All"/>
                    <MenuItem x:Name="mnuSelectInvert" Click="mnuSelectInvert_Click" Header="Invert Selection"/>
                </MenuItem>
            </Menu>
        </Button>
    </ToolBar>
</tb:ToolBarBase>
